package com.itheima.web.controller;

import com.itheima.pojo.Account;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author huyoufu <https://github.com/huyoufu>
 * @TIME 2020-08-14 20:57
 * @description
 */
@Controller
@RequestMapping("/json")
public class JsonController {
    @RequestMapping("/foo")
    @ResponseBody
    public Account foo1 (){
        int i=5/0;
        return new Account();
    }
}
